/**
 * @Author: ls <ls-mac>
 * @Date:   2019-08-19 16:15:09
 * @Last modified by:   ls-mac
 * @Last modified time: 2020-04-21 23:51:17
 */

import request from '../utils/reqaxios';

// /order/cancel
// 取消订单
export async function orderCancel(params) {
  return request({
    url: '/order/cancel',
    method: 'post',
    data: params,
  });
}

// /order/commit
// 预约成功
export async function orderCommit(params) {
  return request({
    url: '/order/commit',
    method: 'post',
    data: params,
  });
}

// /order/create
// 创建订单
export async function orderCreate(params) {
  return request({
    url: '/order/create',
    method: 'post',
    data: params,
  });
}

// /order/detail
// 订单详情
export async function orderDetail(params) {
  return request({
    url: '/order/detail',
    method: 'post',
    data: params,
  });
}

// /order/edit
// 修改订单
export async function orderEdit(params) {
  return request({
    url: '/order/edit',
    method: 'post',
    data: params,
  });
}

// /order/page
// 订单分页列表
export async function orderPage(params) {
  return request({
    url: '/order/page',
    method: 'post',
    data: params,
  });
}

// /order/sendMessageSwitch
// 取消发送短信
export async function orderSendMessageSwitch(params) {
  return request({
    url: '/order/sendMessageSwitch',
    method: 'post',
    data: params,
  });
}
